package org.kumas.bigdata.hdfs3.serialization;

import org.apache.hadoop.io.Writable;

import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;

/*************************************************
 * TODO_Kumas
 *  Author： KumasZhang
 *  DateTime： 2021-12-07 11:02
 *  Description： 
 **/
public interface Serialization<T extends Writable> {
    void serialize(OutputStream out, T t) throws IOException;
    T deserialize(InputStream in, T t) throws IOException;
}
